package com.lin.sunnyweather.utils

import com.lin.sunnyweather.SunnyWeatherApplication

/**
 * 资源处理类
 */
object ResUtils {

    /**
     * 获取天气图标资源地址
     */
    fun getWeatherIcon(icon: String) = SunnyWeatherApplication.context.resources.getIdentifier(
        "ic_${icon}",
        "drawable",
        SunnyWeatherApplication.context.packageName
    )
}